
#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QThread>
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QSharedMemory sharedMemory("Filefoundermyaplicationname");
    if(!(sharedMemory.create(1) && sharedMemory.error() != QSharedMemory::AlreadyExists)) {
        return 0;
    }

    MainWindow w;
    w.app=&app;
    w.show();

    return app.exec();
}
